package java8_5;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class Quiz {
    //测试看是否合格，不合格重来
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        String reply = "";
        do {
            System.out.println("做一套测试题\n老师检查，是否合格？");
            reply = in.next();
        } while (!reply.equals("合格"));
        System.out.println("合格了，出去浪！");
    }
}
